Repository navigation
Gate op compatibility on dskernels and ROCm support - #9150
Conversation
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Signed-off-by: Hongwei Chen <hongweichenmail@gmail.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 61037da13c
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@hwchen2017 looks good for this PR. One open question. Is dskernels still used? I thought it isn't used any more. |
|
@delock It's only used in inference v2. |
Changes
op_builder/ragged_ops.py,op_builder/inference_cutlass_builder.py):is_compatible()returnsFalsewith "requires dskernels, please pip install deepspeed-kernels" whendskernelscannot be imported.op_builder/builder.py): newCUDAOpBuilder.ROCM_SUPPORTED(defaultTrue), checked first inis_compatible()next toMIN_COMPUTE_CAPABILITY. It isFalseforinference_core_ops,cutlass_ops,ragged_device_ops,evoformer_attnandgds. Builders that overrideis_compatible()now callsuper()first, so ROCm is reported instead of a missing dependency, and the CUTLASS search and cuFile probe don't run on ROCm.gdsalready rejected ROCm; it now also records the reason for JIT loads. The now-unreachable ROCm branch inevoformer_attn'sextra_ldflags()is removed.csrc/includes/context.h): the default GEMM algos were hardcoded to99, the CUDA value ofCUBLAS_GEMM_DEFAULT_TENSOR_OP, which is not a valid hipBLAS algo. They now use the named constant, which hipify maps toHIPBLAS_GEMM_DEFAULT. No change on CUDA.tests/unit/ops/test_op_builder.pychecks that the five ops are rejected on ROCm with ROCm given as the reason, and thatfused_adamis not. The inference v2 kernel tests (tests/unit/inference/v2/kernels/{ragged_ops,cutlass_ops,core_ops}) now skip at module level viadeepspeed.ops.__compatible_ops__when their op is unavailable, instead of failing.Issues
Solves the
ModuleNotFoundError: No module named 'dskernels'install failure reported in #4669, #4658, #4761, #4914, #6465, #6625, #7144 (closed), and in #7276 and #7570.Related:
inference_core_ops).